extends "../lafei-1/lafei-1.gd"

func _extInit():
	._extInit()
	lv = 2             #等级的设置
	addSkill("发射鱼雷会额外对目标周围1格(九宫格)的敌人造成伤害", "高爆鱼雷")

func castTorpedo(cha = aiCha):
	createFlyEff(sprcPos, cha, "sk_feiDang")
	var p = 1
	if upgraded == 2:p = 1.3
	if upgraded == 1:
		for i in getCellChas(cha.cell, 2, 1):
			azurHurtChara(i, torpDmg, sys.HurtType.WEAPON, sys.AtkType.TORPEDO, "鱼雷", true)	
	else:
		for i in getAroundChas(cha.cell, false, cha):
			azurHurtChara(i, torpDmg, sys.HurtType.WEAPON, sys.AtkType.TORPEDO, "鱼雷", true, p)	